package com.example.mybatisplus.model.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author lxp
 * @since 2025-03-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Review对象", description="")
public class Review extends Model<Review> {

    private static final long serialVersionUID = 1L;

    @TableId("review_id")
    private String reviewId;

    private String revUserId;

    private String revBusinessId;

    private Integer revStars;

    private String revText;

    private Integer revUseful;

    private Integer revFunny;

    private Integer revCool;

    private Integer prediction;

    private LocalDateTime revTimestamp;

    private LocalDate revDate;


    @Override
    protected Serializable pkVal() {
        return this.reviewId;
    }

}
